// samsting : this file is auto create.

#include "Ons/2015-10-20/OnsConsumerTimeSpanResponse.h"

namespace aliyun { namespace Ons {

OnsConsumerTimeSpanResponse::OnsConsumerTimeSpanResponse() {
}

const string& OnsConsumerTimeSpanResponse::Data::QueueTimeSpan::MessageQueue::GetTopic(void) const {
  return Topic_;
}

const string& OnsConsumerTimeSpanResponse::Data::QueueTimeSpan::MessageQueue::GetBrokerName(void) const {
  return BrokerName_;
}

int OnsConsumerTimeSpanResponse::Data::QueueTimeSpan::MessageQueue::GetQueueId(void) const {
  return QueueId_;
}

const OnsConsumerTimeSpanResponse::Data::QueueTimeSpan::MessageQueue& OnsConsumerTimeSpanResponse::Data::QueueTimeSpan::GetMessageQueue(void) const {
  return MessageQueue_;
}

int64 OnsConsumerTimeSpanResponse::Data::QueueTimeSpan::GetMinTimeStamp(void) const {
  return MinTimeStamp_;
}

int64 OnsConsumerTimeSpanResponse::Data::QueueTimeSpan::GetMaxTimeStamp(void) const {
  return MaxTimeStamp_;
}

int64 OnsConsumerTimeSpanResponse::Data::QueueTimeSpan::GetConsumeTimeStamp(void) const {
  return ConsumeTimeStamp_;
}

const std::vector<OnsConsumerTimeSpanResponse::Data::QueueTimeSpan>& OnsConsumerTimeSpanResponse::Data::GetQueueTimeSpans(void) const {
  return QueueTimeSpans_;
}

const string& OnsConsumerTimeSpanResponse::Data::GetTopic(void) const {
  return Topic_;
}

int64 OnsConsumerTimeSpanResponse::Data::GetMinTimeStamp(void) const {
  return MinTimeStamp_;
}

int64 OnsConsumerTimeSpanResponse::Data::GetMaxTimeStamp(void) const {
  return MaxTimeStamp_;
}

int64 OnsConsumerTimeSpanResponse::Data::GetConsumeTimeStamp(void) const {
  return ConsumeTimeStamp_;
}

const OnsConsumerTimeSpanResponse::Data& OnsConsumerTimeSpanResponse::GetData(void) const {
  return Data_;
}

const string& OnsConsumerTimeSpanResponse::GetHelpUrl(void) const {
  return HelpUrl_;
}

const char* OnsConsumerTimeSpanResponse::BaseKey(void) {
  return "OnsConsumerTimeSpanResponse";
}

void OnsConsumerTimeSpanResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  UnmarshallerString(HelpUrl_, response_map, "OnsConsumerTimeSpanResponse.HelpUrl");
      int Data__QueueTimeSpans__length = 0;
      UnmarshallerInt(Data__QueueTimeSpans__length, response_map, "OnsConsumerTimeSpanResponse.Data.QueueTimeSpans.Length");
      if(Data__QueueTimeSpans__length >= 0) {
        Data_.QueueTimeSpans_.resize(Data__QueueTimeSpans__length);
        for(int i2 = 0; i2 < Data__QueueTimeSpans__length; i2++) {
          UnmarshallerInt64(Data_.QueueTimeSpans_[i2].MinTimeStamp_, response_map, "OnsConsumerTimeSpanResponse.Data.QueueTimeSpans["+string_ValueOfInt(i2)+"].MinTimeStamp");
          UnmarshallerInt64(Data_.QueueTimeSpans_[i2].MaxTimeStamp_, response_map, "OnsConsumerTimeSpanResponse.Data.QueueTimeSpans["+string_ValueOfInt(i2)+"].MaxTimeStamp");
          UnmarshallerInt64(Data_.QueueTimeSpans_[i2].ConsumeTimeStamp_, response_map, "OnsConsumerTimeSpanResponse.Data.QueueTimeSpans["+string_ValueOfInt(i2)+"].ConsumeTimeStamp");
        UnmarshallerString(Data_.QueueTimeSpans_[i2].MessageQueue_.Topic_, response_map, "OnsConsumerTimeSpanResponse.Data.QueueTimeSpans[+"+string_ValueOfInt(i2)+"].MessageQueue.Topic");
        UnmarshallerString(Data_.QueueTimeSpans_[i2].MessageQueue_.BrokerName_, response_map, "OnsConsumerTimeSpanResponse.Data.QueueTimeSpans[+"+string_ValueOfInt(i2)+"].MessageQueue.BrokerName");
        UnmarshallerInt(Data_.QueueTimeSpans_[i2].MessageQueue_.QueueId_, response_map, "OnsConsumerTimeSpanResponse.Data.QueueTimeSpans[+"+string_ValueOfInt(i2)+"].MessageQueue.QueueId");
        } // for(int i2 = 0; i2 < Data__QueueTimeSpans__length; i2++) {
      } // if(Data__QueueTimeSpans__length >= 0) {

    UnmarshallerString(Data_.Topic_, response_map, "OnsConsumerTimeSpanResponse.Data.Topic");
    UnmarshallerInt64(Data_.MinTimeStamp_, response_map, "OnsConsumerTimeSpanResponse.Data.MinTimeStamp");
    UnmarshallerInt64(Data_.MaxTimeStamp_, response_map, "OnsConsumerTimeSpanResponse.Data.MaxTimeStamp");
    UnmarshallerInt64(Data_.ConsumeTimeStamp_, response_map, "OnsConsumerTimeSpanResponse.Data.ConsumeTimeStamp");
}


} } // namespace aliyun { namespace Ons {

// end of file 
